import {request} from "../../request";

export function getCustomerById(id){
    return request({
        url:`/lswms/customer/${id}`,
        method:'get'
    })
}


export function getCustomerPage(data){
    return request({
        url:'/lswms/customer/page',
        method:'put',
        data:data
    })
}

export function putCustomer(data){
    return request({
        url:'/lswms/customer',
        method:'put',
        data:data
    })
}
export function postCustomer(data){
    return request({
        url:'/lswms/customer',
        method:'post',
        data:data
    })
}

export function deleteCustomer(data){
    return request({
        url:`/lswms/customer`,
        method:'delete',
        data:data
    })
}
export function exportCustomer(data){
    return request({
        url:`/lswms/customer/export`,
        method:'get',
        data:data,
        responseType:'blob'
    })
}
